<template>
	<view class="wf-item-page">
		<image :src="item.productImagePath" mode="widthFix" class="item-img" />
		<view class="item-info">
			<!-- <image :src="item.avatar" mode="aspectFill" class="info-avatar"/> -->
			<view class="info-price">￥{{ item.price }}</view>
			<view class="info-nickname">{{ item.productName }}</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			item: {
				type: Object,
				require: true
			}
		}
	}
</script>

<style lang="scss" scoped>
	.wf-item-page {
		background: #fff;
		overflow: hidden;
		border-radius: 5px;
	}

	.item-img {
		width: 100%;
	}

	.item-info {
		display: flex;
		align-items: center;
		padding: 5px;
	}

	.info-avatar {
		width: 25px;
		height: 25px;
		border-radius: 50%;
		margin-right: 5px;
	}

	.info-price {
		color: orange;
	}

	.info-nickname {
		margin: 0 0 0 20rpx;
		font-size: 12px;
		color: #333;
	}
</style>